<%@page import="model.Projeto"%>
<%@page import="core.App"%>
<%@page import="model.Usuario"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:include page='_header.jsp' />


<h3>Usuários</h3>


<table class="table table-striped table-bordered table-condensed">
    <thead>
        <tr>
            <th>Nome</th>
        </tr>
    </thead>
    <tbody>


        <%
          List<Projeto> projetos = (List)  App.getInstance().getAttribute("projetos");
            if (!projetos.isEmpty()) {
                for (Projeto p : projetos) {
                    out.println("<tr><td>" + p.getNome() + "</td></tr>");
                }
            }
        %>     


    </tbody>
</table>







<h3>Novo:</h3>
<form class="form-horizontal well" method="POST" action="FrontController?action=salvarProjeto">
    <input type="hidden" name="id" id="id" value=""/>
    <fieldset>
        <div class="control-group">
            <label class="control-label" for="focusedInput">Nome</label>
            <div class="controls">
                <input class="input-xlarge focused" id="focusedInput" type="text" value="" id="nome" name="nome">
            </div>
        </div>
        <button type="submit" class="btn btn-primary">Salvar</button>

    </fieldset>
</form>

<jsp:include page='_footer.jsp' />